Retrieves the value at a specified index.
Namespace:
Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly:
Microsoft.ComponentStudio.ComponentPlatformInterface (in
microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
Public Class SomeType1
End Class
Public Class SomeType2
End Class
Dim readOnlyKeyedCollection1 As ReadOnlyKeyedCollection(Of SomeType1, SomeType2)
Dim key As Integer
Dim returnValue As SomeType2
returnValue = readOnlyKeyedCollection1.Item(key)
Dim sampleValue As SomeType2
readOnlyKeyedCollection1.Item(key) = sampleValue
|
Syntax
Visual Basic |
Public Overridable Overloads Property Item( _
ByVal index As Integer _
) As TValue
|
C# |
public virtual TValue this[
int index
] {get; set;}
|
C++ |
public:
property virtual TValue default[int] {
TValue get(int index);
void set(int index, TValue value);
}
|
J# |
public TValue get_Item(
int index
);
public void set_Item(
int index
TValue);
|
JScript |
JScript does not support Generics.
|
Parameters
- index
-
Index of the item.
Property Value
The value at the specified index.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server
2003, Windows Vista, and Windows 2000
Target Platforms
See Also